cmake_minimum_required(VERSION 3.10)
project(snake_brain-burnout C)

set(CMAKE_C_STANDARD 11)

include_directories(include) # head in include
find_package(SQLite3 REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)

include_directories(${GTK3_INCLUDE_DIRS})
link_directories(${GTK3_LIBRARY_DIRS})
add_definitions(${GTK3_CFLAGS_OTHER})

set(SOURCE_FILES
    main.c
        src/food.c
        src/game.c
        src/map.c
        src/ranking.c
        src/snake.c
        src/utils.c
)

add_executable(snake_brain-burnout ${SOURSE_FILES})

target_link_libraries(snake_brain-burnout ${GTK3_LIBRARIES})
target_link_libraries(snake_brain-burnout SQLite::SQLite3)
#target_compile_options(snake_brain-burnout RRIVATE -Wall -Wextra -pedantic)

